<template>
    <div class="w-100% h-100% flex">
        <iframe :src="iframeSrc" class="w-100% h-100% flex-[1_0] min-h-0px min-w-0px"></iframe>
    </div>
</template>

<script setup>
import { useSystemStore } from '@/stores/system'
import { computed } from 'vue'

const systemStore = useSystemStore()

const iframeSrc = computed(() => {
    const nav = systemStore.currentNav
    if (nav.subSystemType === 1) {
        return nav.url
    } else {
        return ''
    }
})

</script>

<style lang="scss" scoped>

</style>